package demo;

public class Demo4 {
    public static void main(String[] args) {
        Card card = new Card("黑桃",'A');
        card.showCard("黑桃",'A');

    }
}
class Card{
    String flower;
    char num;
    public Card(String flower,char num){
        this.flower=flower;
        this.num=num;
    }
    void showCard(String flower,char num){
        System.out.println(flower+num);
    }
}
